Leat\Application\Services\GiftcardManager D

Total Complexity 235
Dependencies 10
Dependents 2
Total lines 1,932
Lines of code 1,269
Logical lines of code 638
Comment lines 412
Methods 36
Properties 3

Methods 36

Method Rating Maintainability Complexity Lines of code
handle_refund()
B
32 20 114
handle_ajax_refund()
B
35 17 87
get_all_gift_cards_from_order()
B
41 16 58
check_gift_card_balance()
A
43 15 46
display_total_in_admin_order_totals()
A
34 10 111
process_gift_cards_immediately()
A
36 11 92
revalidate_gift_card_balances()
A
44 14 45
add_gift_card_to_session_from_data()
A
36 8 87
ajax_add_gift_card_to_session()
A
42 10 52
render_gift_cards_content()
A
43 8 52
handle_cart_extension_update()
A
51 9 26
display_gift_cards_in_refund_overview()
A
46 8 41
display_gift_cards_in_order_totals()
S
50 7 27
render_gift_card_form()
S
46 6 42
calculate_order_totals()
S
54 7 22
register_store_api_update_callback()
S
50 6 29
display_gift_card_column()
S
53 6 23
render_applied_gift_cards()
S
52 5 25
calculate_gift_card_on_totals()
S
52 5 23
store_gift_card_info_in_order()
S
48 4 38
update_gift_card_balance_in_session()
S
55 5 19
init()
S
46 3 38
add_gift_cards_meta_box()
S
54 4 23
remove_gift_card_from_session()
S
59 4 14
initialize_original_cart_total()
S
61 4 12
enqueue_scripts()
S
47 2 39
ajax_get_applied_gift_cards()
S
56 3 17
update_amount_used_per_gift_card_for_order_total()
S
58 3 15
ajax_remove_gift_card_from_session()
S
60 3 12
mask_gift_card_code()
S
67 3 7
render_gift_cards_meta_box_hpos()
S
69 2 7
include_admin_template()
S
68 2 7
destroy_cart_session()
S
72 2 6
__construct()
S
74 1 5
render_gift_cards_meta_box()
S
77 1 4
add_gift_card_column()
S
75 1 4